<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>三维空间</title>
		<style type="text/css">
			boby{
				perspective: 500px;
				transform-style: preserve-3d;
			}
			div{
				transform-style: preserve-3d;
				
				width: 300px;
				height: 300px;
			}
			.box1{
				
				background-color: rgba(255, 255, 0 ,.3);
				/* opacity: .3; */   /* 透明度 */
				margin: 100px auto;
				transform: rotatey(45deg);
			}
			.box2{
				background-color: orange;
				transform: rotatex(60deg);
			}
		</style>
	</head>
	<body>
		<div class="box1">
			<div class="box2"></div>
		</div>
	</body>
</html>